package com.etc;

import dev.langchain4j.model.openai.OpenAiChatModel;

public class LangChainTest {
    public static void main(String[] args) {

        OpenAiChatModel model = OpenAiChatModel.builder()
                .baseUrl("https://api.deepseek.com")
                .apiKey("sk-7da191bb42624f0b839e4afa8276ddd4")
                .modelName("deepseek-chat")
                .logRequests( true)
                .logResponses( true)
                .build();
        String result = model.chat("八月份有多少天?");
        System.out.println(result);

    }
}
